-
Notifications
You must be signed in to change notification settings - Fork 250
[feature] Add support for user profiles API #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This would be a great thing to have, @duemir @PierreBtz would you have an opportunity to get this reviewed soon? 🙌 |
public UserProfile getUserProfile(UserProfile userProfile) { | ||
return getUserProfile(userProfile.getId()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the purpose of this method?
Thanks for the contribution and sorry for the delay in reviewing this. I'll take some time next week to work on this. I'll also unblock the CI on this PR to have a run and make sure the test are passing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
I found minor quirks that I think we should address prior to merging, but I'm ok overall with the change.
private String source; | ||
private String type; | ||
private Date updatedAt; | ||
private String userId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks odd to use aString
here where the API (public List<UserProfile> getUserProfilesForUser(long userId) {
) works with a long
.
} | ||
|
||
public UserProfile createOrUpdateUserProfile( | ||
UserProfile userProfile, String identifierType, String identifierValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about aligning with the UserProfile
object and use an Identifier
object here?
handle(UserProfile.class, "profile"))); | ||
} | ||
|
||
public UserProfile getUserProfilebyIdentifier(String identifier) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about renaming the variable to queryIdentifier
since this is not an identifier we are passing here, but an identifier query?
Adds support for the following User Profile CRUD operations (documented here)